<{include file="public_html/header.html"}>
<{include file="public_html/left_menu.html"}>

<blockquote class="layui-elem-quote"><{$action}></blockquote>

<form class="layui-form layui-form-pane" method="post" action="<{$post_url}>" id="form_add_role">
	<input type="hidden" name="id" value="<{$question_category_info['id']|default:'0'}>" />
	<div class="layui-form-item">
		<label class="layui-form-label">分类名称</label>
		<div class="layui-input-block">
			<input type="text" name="name" value="<{$question_category_info.name|default:''}>" lay-verify="name" autocomplete="off" class="layui-input">
		</div>
	</div>

	<!-- <div class="layui-form-item">
		<label class="layui-form-label">父级分类</label>
		<div class="layui-input-block">
			<select name="pid" lay-filter="question_type">
				<option value="0" <{if 0 == $question_category_info.pid|default:""}> selected <{/if}>>顶级分类</option>
				<{if isset($top_question_categorys) AND $top_question_categorys|count > 0}>
				<{foreach from=$top_question_categorys item=item}>
					<{if $item.id != $question_category_info.id|default:""}>
					<option value="<{$item.id}>" <{if $item.id == $question_category_info.pid|default:""}> selected <{/if}>><{$item.name}></option>
					<{/if}>
				<{/foreach}>
				<{/if}>
			</select>
		</div>
	</div> -->

	<div class="layui-form-item">
		<label class="layui-form-label">排序</label>
			<div class="layui-input-block">
				<input type="text" name="sort" value="<{$question_category_info.sort|default:'0'}>" autocomplete="off" class="layui-input">
			</div>
	</div>

	<div class="layui-form-item">
	    <label class="layui-form-label">是否启用</label>
	    <div class="layui-input-block">
	            <{assign var="status" value=$question_category_info.status|default:"1"}>
	            <input type="checkbox" <{if $status == 1}> checked <{/if}> name="status" lay-skin="switch" lay-filter="switchTest" value="1" >
	    </div>
  	</div>



	<div class="layui-input-block">
		<button class="layui-btn" lay-submit lay-filter="*">立即提交</button>
		<button type="reset" class="layui-btn layui-btn-primary">重置</button>
	</div>
</form>


<{include file="public_html/footer.html"}>
